import { Component } from '@angular/core';
import { NavController } from 'ionic-angular';
import { LoadingController } from 'ionic-angular';
import { ModalController, Platform, NavParams, ViewController } from 'ionic-angular';
import { DetailPage } from '../detail/detail';
import { FeedbackPage } from '../feedback/feedback';
@Component({
  selector: 'page-home',
  templateUrl: 'home.html'
  
  
})
export class HomePage {

  constructor(public navCtrl: NavController,public loadingCtrl: LoadingController,public modalCtrl: ModalController) {

  }
  public event = {
    month: '1990-02-19',
    timeStarts: '07:43',
    timeEnds: '1990-02-20'
  }
  presentLoading() {
    this.loadingCtrl.create({
      content: 'Please wait...',
      duration: 3000,
      dismissOnPageChange: true
    }).present();
  }
  openModal() {
    
        let modal = this.modalCtrl.create(DetailPage);
        modal.present();
  }
  opendetail(){
    this.navCtrl.push(DetailPage);
  }
  contrast: number = 0;
  openfeedback(){
    this.navCtrl.push(FeedbackPage);
  }
}
